<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:rich="http://richfaces.org/rich">

<ui:composition template="common.xhtml">
	<ui:define name="content">
		<div class="menuPanel">
			<rich:toolbar>
				<rich:dropDownMenu mode="ajax" label="#{msgs.cadastrar}">
					<rich:menuItem label="Clientes" action="cadastroCliente" />
                    <rich:menuItem label="Livros" action="cadastroLivro" />
                    <rich:menuItem label="Promoções" action="cadastroPromocao" />
				</rich:dropDownMenu>
				<rich:dropDownMenu mode="ajax" label="Consultar">
					<rich:menuItem label="Clientes" action="consultaCliente" />
                    <rich:menuItem label="Livros" action="consultaLivro" />
                    <rich:menuItem label="Promoções" action="consultaPromocao" />
				</rich:dropDownMenu>
				<rich:dropDownMenu mode="ajax" label="Relatórios">
					<rich:menuItem label="Autores mais Vendidos" action="relatorioAutorMaisVendido" />
					<rich:menuItem label="Maiores Compradores" action="relatorioCompradores" />
                    <rich:menuItem label="Livros mais Vendidos" action="relatorioLivroMaisVendido" />
                    <rich:menuItem label="Usuários Cadastrados" action="relatorioUsuario" />
                    <rich:menuItem label="Vendas" action="relatorioVenda" />
                    <rich:menuItem label="Vendas de Promoções" action="relatorioVendaPromocao"  />
				</rich:dropDownMenu>
				<rich:dropDownMenu mode="ajax" label="Outros">
					<rich:menuItem label="Equipe" action="equipe" />
					<rich:menuItem label="Contato" action="contato" />	
				</rich:dropDownMenu>

				<rich:toolbarGroup location="right">
					<h:form>
						<h:commandButton  image="/resources/images/logoff.gif" />
					</h:form>
				</rich:toolbarGroup>
			</rich:toolbar>
		</div>
		<br />
		<div id="pagePanel">
			<ui:insert name="page" />
		</div>
	</ui:define>
</ui:composition>
</html>